<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>index</title>
		<link rel="stylesheet" href="css/H-ui.min.css" />
		<script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
	</head>
	<body>
		<table class="table table-border table-bordered table-hover table-bg table-sort mt-5" id="item-table2">
				<thead>
					<th id="name-title">员工编号</th>
					<th>外呼日期</th>
					<th>外呼次数</th>
					<th>外呼成功次额量</th>
					<th>一访成功量</th>
					<th>二访成功量</th>
					<th>三访成功量</th>
					<th>通话时长</th>
				</thead>
				<tbody>
					<tr>
						<td>厉害了world哥</td>
						<td>13245</td>
						<td>厉害了world哥</td>
						<td>厉害了world哥</td>
						<td>厉害了world哥</td>
						<td>dfdds</td>
						<td>厉害了world哥</td>
						<td>nihao</td>
					</tr>
					<tr>
						<td>厉害了world哥</td>
						<td>13245</td>
						<td>厉害了world哥</td>
						<td>厉害了world哥</td>
						<td>厉害了world哥</td>
						<td>dfdds</td>
						<td>厉害了world哥</td>
						<td>nihao</td>
					</tr>
					<tr>
						<td>厉害了world哥</td>
						<td>13245</td>
						<td>厉害了world哥</td>
						<td>厉害了world哥</td>
						<td>厉害了world哥</td>
						<td>dfdds</td>
						<td>厉害了world哥</td>
						<td>nihao</td>
					</tr>
					<tr>
						<td colspan="8">总结</td>
					</tr>
				</tbody>
			</table>
			<button id="export">export</button>
			<script src="tbexport/tbexport.js"></script>
			<script type="text/javascript">
				;$(function(){
					var html = '<table><thead><tr><th>姓名</th><th>年龄</th></tr></thead><tbody><tr><td>杨通通</td><td>23</td></tr><tr><th>姓名</th><th>年龄</th></tr></thead><tbody><tr><td>杨通通</td><td>23</td></tr></tbody></table>';
					$('#export').on('click',function(ev){
						$(this).tableExport({
							content:html,
							format:"xlsx",
							fileName:'yangtong'
						});
					});
				});				
			</script>
	</body>
</html>
